package DataBaseInterface;

import java.util.ArrayList;

import Po.BookPO;
import Po.Message;
import Po.SimpleBook;
import Po.Type;

public interface BookServerInterface {
	public ArrayList<SimpleBook> searchBook(String key, Type type,boolean accuracy);

	public String[][] getBookTree();

	public BookPO getBookDetail(String ISBN);

	public Message addBook(BookPO book);

	public Message deleteBook(String ISBN);

	public Message modifyBook(BookPO book);

	public Message addNode(String fatherName, String thisName);

	public Message deleteNode(String name);

	public Message modifyNode(String preName, String newName);
	
	public Message collectBook(int ID, String ISBN);
	
	public ArrayList<SimpleBook> getBookCollection(int ID);

	public Message deleteCollectedBook(int id, String isbn);
}
